FROM python:3.9.10
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
    echo $TZ > /etc/timezone && \
    pip install --upgrade pip&& \
    pip3 install -r /data/code/requirements.txt
COPY requirements.txt /data/code/requirements.txt
COPY app.py /data/code/app.py
WORKDIR /data/code/
ENTRYPOINT ["sh","-c", "python app.py"]